Optimal. Leaf size=186 \[ \frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 \sqrt {d+e x}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{3 c e^2 (d+e x)^{3/2}}-\frac {2 \sqrt {2 c d-b e} (e f-d g) \tanh ^{-1}\left (\frac {\sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{\sqrt {2 c d-b e} \sqrt {d+e x}}\right )}{e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 186, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {808, 678, 674,
214} \begin {gather*} \frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 \sqrt {d+e x}}-\frac {2 \sqrt {2 c d-b e} (e f-d g) \tanh ^{-1}\left (\frac {\sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{\sqrt {d+e x} \sqrt {2 c d-b e}}\right )}{e^2}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{3 c e^2 (d+e x)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 674
Rule 678
Rule 808
Rubi steps
\begin {align*} \int \frac {(f+g x) \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}{(d+e x)^{3/2}} \, dx &=-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{3 c e^2 (d+e x)^{3/2}}-\frac {\left (2 \left (\frac {3}{2} e \left (-2 c e^2 f+b e^2 g\right )-\frac {3}{2} \left (-c e^3 f+\left (-c d e^2+b e^3\right ) g\right )\right )\right ) \int \frac {\sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}{(d+e x)^{3/2}} \, dx}{3 c e^3}\\ &=\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 \sqrt {d+e x}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{3 c e^2 (d+e x)^{3/2}}+\frac {((2 c d-b e) (e f-d g)) \int \frac {1}{\sqrt {d+e x} \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx}{e}\\ &=\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 \sqrt {d+e x}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{3 c e^2 (d+e x)^{3/2}}+(2 (2 c d-b e) (e f-d g)) \text {Subst}\left (\int \frac {1}{-2 c d e^2+b e^3+e^2 x^2} \, dx,x,\frac {\sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}{\sqrt {d+e x}}\right )\\ &=\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 \sqrt {d+e x}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{3 c e^2 (d+e x)^{3/2}}-\frac {2 \sqrt {2 c d-b e} (e f-d g) \tanh ^{-1}\left (\frac {\sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{\sqrt {2 c d-b e} \sqrt {d+e x}}\right )}{e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 152, normalized size = 0.82 \begin {gather*} \frac {2 \sqrt {d+e x} \sqrt {-b e+c (d-e x)} \left (\sqrt {-b e+c (d-e x)} (b e g+c (3 e f-4 d g+e g x))+3 c \sqrt {-2 c d+b e} (-e f+d g) \tan ^{-1}\left (\frac {\sqrt {-b e+c (d-e x)}}{\sqrt {-2 c d+b e}}\right )\right )}{3 c e^2 \sqrt {(d+e x) (-b e+c (d-e x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 322, normalized size = 1.73
method | result | size |
default | \(\frac {2 \sqrt {-\left (e x +d \right ) \left (c e x +b e -c d \right )}\, \left (3 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b c d e g -3 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) b c \,e^{2} f -6 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) c^{2} d^{2} g +6 \arctan \left (\frac {\sqrt {-c e x -b e +c d}}{\sqrt {b e -2 c d}}\right ) c^{2} d e f +c e g x \sqrt {-c e x -b e +c d}\, \sqrt {b e -2 c d}+b e g \sqrt {-c e x -b e +c d}\, \sqrt {b e -2 c d}-4 c d g \sqrt {-c e x -b e +c d}\, \sqrt {b e -2 c d}+3 c e f \sqrt {-c e x -b e +c d}\, \sqrt {b e -2 c d}\right )}{3 \sqrt {e x +d}\, \sqrt {-c e x -b e +c d}\, c \,e^{2} \sqrt {b e -2 c d}}\) | \(322\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.33, size = 386, normalized size = 2.08 \begin {gather*} \left [-\frac {3 \, {\left (c d^{2} g - c f x e^{2} + {\left (c d g x - c d f\right )} e\right )} \sqrt {2 \, c d - b e} \log \left (\frac {3 \, c d^{2} - {\left (c x^{2} + 2 \, b x\right )} e^{2} + 2 \, {\left (c d x - b d\right )} e - 2 \, \sqrt {c d^{2} - b d e - {\left (c x^{2} + b x\right )} e^{2}} \sqrt {2 \, c d - b e} \sqrt {x e + d}}{x^{2} e^{2} + 2 \, d x e + d^{2}}\right ) + 2 \, \sqrt {c d^{2} - b d e - {\left (c x^{2} + b x\right )} e^{2}} {\left (4 \, c d g - {\left (c g x + 3 \, c f + b g\right )} e\right )} \sqrt {x e + d}}{3 \, {\left (c x e^{3} + c d e^{2}\right )}}, \frac {2 \, {\left (3 \, {\left (c d^{2} g - c f x e^{2} + {\left (c d g x - c d f\right )} e\right )} \sqrt {-2 \, c d + b e} \arctan \left (-\frac {\sqrt {-2 \, c d + b e} \sqrt {x e + d}}{\sqrt {c d^{2} - b d e - {\left (c x^{2} + b x\right )} e^{2}}}\right ) - \sqrt {c d^{2} - b d e - {\left (c x^{2} + b x\right )} e^{2}} {\left (4 \, c d g - {\left (c g x + 3 \, c f + b g\right )} e\right )} \sqrt {x e + d}\right )}}{3 \, {\left (c x e^{3} + c d e^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- \left (d + e x\right ) \left (b e - c d + c e x\right )} \left (f + g x\right )}{\left (d + e x\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 406 vs.
\(2 (169) = 338\).
time = 1.42, size = 406, normalized size = 2.18 \begin {gather*} -\frac {2}{3} \, {\left (\frac {3 \, {\left (2 \, c d^{2} g - 2 \, c d f e - b d g e + b f e^{2}\right )} \arctan \left (\frac {\sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e}}{\sqrt {-2 \, c d + b e}}\right )}{\sqrt {-2 \, c d + b e}} + \frac {3 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} c^{3} d g - 3 \, \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e} c^{3} f e + {\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}} c^{2} g}{c^{3}}\right )} e^{\left (-2\right )} + \frac {2 \, {\left (6 \, c^{2} d^{2} g \arctan \left (\frac {\sqrt {2 \, c d - b e}}{\sqrt {-2 \, c d + b e}}\right ) - 6 \, c^{2} d f \arctan \left (\frac {\sqrt {2 \, c d - b e}}{\sqrt {-2 \, c d + b e}}\right ) e - 3 \, b c d g \arctan \left (\frac {\sqrt {2 \, c d - b e}}{\sqrt {-2 \, c d + b e}}\right ) e + 3 \, b c f \arctan \left (\frac {\sqrt {2 \, c d - b e}}{\sqrt {-2 \, c d + b e}}\right ) e^{2} + 5 \, \sqrt {2 \, c d - b e} \sqrt {-2 \, c d + b e} c d g - 3 \, \sqrt {2 \, c d - b e} \sqrt {-2 \, c d + b e} c f e - \sqrt {2 \, c d - b e} \sqrt {-2 \, c d + b e} b g e\right )} e^{\left (-2\right )}}{3 \, \sqrt {-2 \, c d + b e} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (f+g\,x\right )\,\sqrt {c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x}}{{\left (d+e\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________